<template>
	<view>
		<view class="content">
			<rich-text :nodes="list.content"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:'',
				id:''
			}
		},
		onLoad(opt) {
			this.id=opt.id
			this.getlist()
		},
		methods: {
			getlist(){
				let that=this
				that.$http('user.baofu_agreement', {id:that.id}, '加载中...').then(res => {
					if (res.code === 1) {
						console.log(res.data)
						that.list=res.data.info
					}
				});
			},
		}
	}
</script>

<style lang="scss">
	.content{
		margin:0 30rpx;
	}
</style>
